home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / Archiv / OpusSDK.lha / opussdk / examples / envoymodule / makefile < prev    next >
Makefile  |  1996-08-27  |  1KB  |  63 lines

  1. # Makefile for a sample Opus 5 module
  2.  
  3. # This is based on the structure of the real Opus makefile, but may be
  4. # adapted as you see fit
  5.  
  6. # Standard modules and libraries
  7. #DEBUGLIB    =   lib:debug.lib
  8. DEBUGLIB    =
  9. STDOBJS     =   
  10.  
  11.  
  12. # Files for this module
  13. ENVOYOBJS   =   envoy.o envoy_data.o envoy_strings.o
  14. ENVOYVER    =   1
  15. ENVOYREV    =   0
  16.  
  17.  
  18. # Compiler options
  19. CCOPTS = 
  20. #CCOPTS      =   DEBUG=LINE
  21.  
  22.  
  23. #########################################################################
  24.  
  25. all:         envoy.strings envoy.module
  26.  
  27. #########################################################################
  28.  
  29. # This will create the string file
  30. envoy_strings.o : envoy.strings
  31.     setdate envoy_strings.c
  32.     sc envoy_strings.c
  33.  
  34. #########################################################################
  35.  
  36. envoy.module: $(STDOBJS) $(ENVOYOBJS)
  37.     slink with <<
  38. libprefix _L_
  39. libfd modules.fd
  40. from lib:libent.o lib:libinit.o lib:modinit.o $(STDOBJS) $(ENVOYOBJS)
  41. to $@
  42. lib lib:sc.lib lib:amiga.lib $(DEBUGLIB) lib:dopuslib.lib
  43. libversion $(ENVOYVER)
  44. librevision $(ENVOYREV)
  45. noicons
  46. sc sd 
  47. <
  48.  
  49. #########################################################################
  50.  
  51. .c.o:
  52.     sc $(CCOPTS) $*.c
  53. .asm.o:
  54.     sc:c/asm -iASMINC: $*.asm
  55. .cd.strings:
  56.     catcomp descriptor=$*.cd cfile=$*.strings
  57.  
  58. #########################################################################
  59.  
  60. clean:
  61.     delete ~(\#?_strings).o quiet
  62.     setdate \#?.cd
  63.